static unsigned int next = 0;

void srand_znn(int seed) {
    next =seed;
}

int rand_znn(void) {
    next = next*16531+64;
    return next;
}